:root {
  --primary-color: #6f42c1;
  --primary-dark: #4a2d7f;
  --primary-light: #b8a2d9;
  --secondary-color: #8e7cc3;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
}

.navbar {
  background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar {
  background: linear-gradient(180deg, var(--primary-light), var(--secondary-color));
  box-shadow: 2px 0 4px rgba(0,0,0,0.1);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-dark);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.nav-link {
  color: var(--light-color);
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--light-color);
  background: rgba(255,255,255,0.1);
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 56px;
    left: -100%;
    width: 250px;
    height: calc(100vh - 56px);
    transition: left 0.3s ease;
  }

  .sidebar.active {
    left: 0;
  }
}

/* 基础样式 */
body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  min-height: 100vh;
}

/* 导航栏 */
.navbar {
  background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 1rem 2rem;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
}

/* 侧边栏 */
.sidebar {
  background: linear-gradient(180deg, var(--primary-light), var(--secondary-color));
  box-shadow: 2px 0 4px rgba(0,0,0,0.1);
  min-height: calc(100vh - 56px);
  padding: 1rem;
}

.sidebar .nav-link {
  color: white;
  padding: 0.75rem 1rem;
  margin: 0.25rem 0;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
  background: rgba(255,255,255,0.1);
  transform: translateX(5px);
}

.sidebar .nav-link i {
  width: 1.5rem;
  text-align: center;
}

/* 主内容区 */
.main-content {
  padding: 2rem;
  background-color: white;
  min-height: calc(100vh - 56px);
}

/* 按钮样式 */
.btn-purple {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.btn-purple:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* 用户头像 */
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
  border: 2px solid white;
}

/* 响应式布局 */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 56px;
    left: -100%;
    width: 250px;
    transition: all 0.3s ease;
    z-index: 1000;
  }

  .sidebar.active {
    left: 0;
  }

  .main-content {
    padding: 1rem;
  }
}
